package com.wish.wishhouse_resource.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wish.wishhouse_resource.entity.TbPrivateFacility;
import com.wish.wishhouse_resource.service.ITbPrivateFacilityService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 独立配置表 前端控制器
 * </p>
 *
 * @author cyy
 * @since 2021-04-01
 */
@RestController
@RequestMapping("/tbPrivateFacility")
public class TbPrivateFacilityController {
    @Resource
    private ITbPrivateFacilityService tbPrivateFacilityService;

    /**
     * 查询房间配置
     * @return
     */
    @RequestMapping("private")
    public ResultEntity list(){
        List<TbPrivateFacility> privateFacilityList = tbPrivateFacilityService.queryList(null);
        return ResultEntity.ok(privateFacilityList);
    }
}

